.class Lcom/wmr/order/PingActivity$6;
.super Ljava/lang/Thread;
.source "PingActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/wmr/order/PingActivity;->pingorder()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/wmr/order/PingActivity;


# direct methods
.method constructor <init>(Lcom/wmr/order/PingActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    .line 314
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 19

    .prologue
    .line 316
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 318
    new-instance v7, Landroid/os/Message;

    invoke-direct {v7}, Landroid/os/Message;-><init>()V

    .line 320
    .local v7, "msg":Landroid/os/Message;
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    const-string v16, "userInfo"

    .line 321
    const/16 v17, 0x0

    .line 320
    invoke-virtual/range {v15 .. v17}, Lcom/wmr/order/PingActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v8

    .line 322
    .local v8, "preferences":Landroid/content/SharedPreferences;
    const-string v15, "uid"

    const-string v16, ""

    move-object/from16 v0, v16

    invoke-interface {v8, v15, v0}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    .line 323
    .local v13, "uid":Ljava/lang/String;
    const-string v15, "pass"

    const-string v16, ""

    move-object/from16 v0, v16

    invoke-interface {v8, v15, v0}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 324
    .local v9, "pwd":Ljava/lang/String;
    new-instance v15, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget-object v0, v0, Lcom/wmr/order/PingActivity;->m:Lmyapp/MyApp;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 325
    const-string v16, "/index.php?ctrl=app&action=pingall&orderid="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    .line 326
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    move-object/from16 v16, v0

    # getter for: Lcom/wmr/order/PingActivity;->orderid:Ljava/lang/String;
    invoke-static/range {v16 .. v16}, Lcom/wmr/order/PingActivity;->access$8(Lcom/wmr/order/PingActivity;)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "&uid="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "&pwd="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "&datatype=json"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    .line 324
    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 327
    .local v14, "url":Ljava/lang/String;
    const-string v15, "PingACtivity"

    new-instance v16, Ljava/lang/StringBuilder;

    const-string v17, "pingorder \u63d0\u4ea4\u8bc4\u4ef7\u6570\u636e"

    invoke-direct/range {v16 .. v17}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v15 .. v16}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 329
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_0
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    # getter for: Lcom/wmr/order/PingActivity;->orderParticulars:Ljava/util/ArrayList;
    invoke-static {v15}, Lcom/wmr/order/PingActivity;->access$1(Lcom/wmr/order/PingActivity;)Ljava/util/ArrayList;

    move-result-object v15

    invoke-virtual {v15}, Ljava/util/ArrayList;->size()I

    move-result v15

    if-lt v5, v15, :cond_0

    .line 338
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    const v16, 0x7f0c0122

    invoke-virtual/range {v15 .. v16}, Lcom/wmr/order/PingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/RatingBar;

    .line 339
    .local v10, "shoppointnum":Landroid/widget/RatingBar;
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    const v16, 0x7f0c0123

    invoke-virtual/range {v15 .. v16}, Lcom/wmr/order/PingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/RatingBar;

    .line 340
    .local v11, "shopsudupointnum":Landroid/widget/RatingBar;
    new-instance v15, Ljava/lang/StringBuilder;

    invoke-static {v14}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v16, "&shoppointnum="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v10}, Landroid/widget/RatingBar;->getRating()F

    move-result v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "&shopsudupointnum="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v11}, Landroid/widget/RatingBar;->getRating()F

    move-result v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 343
    const-string v15, "PingACtivity"

    new-instance v16, Ljava/lang/StringBuilder;

    const-string v17, "pingorder \u63d0\u4ea4\u8bc4\u4ef7\u6570\u636e"

    invoke-direct/range {v16 .. v17}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v16

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v15 .. v16}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 349
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    iget-object v15, v15, Lcom/wmr/order/PingActivity;->m:Lmyapp/MyApp;

    invoke-static {v14, v15}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v12

    .line 351
    .local v12, "str":Ljava/lang/String;
    :try_start_0
    new-instance v6, Lorg/json/JSONObject;

    invoke-direct {v6, v12}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 353
    .local v6, "json":Lorg/json/JSONObject;
    const-string v15, "error"

    invoke-virtual {v6, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    const-string v16, "true"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_1

    .line 355
    const-string v15, "msg"

    invoke-virtual {v6, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    iput-object v15, v7, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 356
    const/4 v15, 0x1

    iput v15, v7, Landroid/os/Message;->arg1:I

    .line 357
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    iget-object v15, v15, Lcom/wmr/order/PingActivity;->h:Landroid/os/Handler;

    invoke-virtual {v15, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 373
    .end local v6    # "json":Lorg/json/JSONObject;
    :goto_1
    return-void

    .line 330
    .end local v10    # "shoppointnum":Landroid/widget/RatingBar;
    .end local v11    # "shopsudupointnum":Landroid/widget/RatingBar;
    .end local v12    # "str":Ljava/lang/String;
    :cond_0
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    # getter for: Lcom/wmr/order/PingActivity;->orderParticulars:Ljava/util/ArrayList;
    invoke-static {v15}, Lcom/wmr/order/PingActivity;->access$1(Lcom/wmr/order/PingActivity;)Ljava/util/ArrayList;

    move-result-object v15

    invoke-virtual {v15, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/OrderParticular;

    .line 331
    .local v1, "bb":Lbean/OrderParticular;
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    # getter for: Lcom/wmr/order/PingActivity;->Ratbar:[Landroid/widget/RatingBar;
    invoke-static {v15}, Lcom/wmr/order/PingActivity;->access$4(Lcom/wmr/order/PingActivity;)[Landroid/widget/RatingBar;

    move-result-object v15

    aget-object v2, v15, v5

    .line 332
    .local v2, "checkrate":Landroid/widget/RatingBar;
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    # getter for: Lcom/wmr/order/PingActivity;->edit:[Landroid/widget/EditText;
    invoke-static {v15}, Lcom/wmr/order/PingActivity;->access$5(Lcom/wmr/order/PingActivity;)[Landroid/widget/EditText;

    move-result-object v15

    aget-object v4, v15, v5

    .line 333
    .local v4, "editText1":Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v16

    invoke-interface/range {v16 .. v16}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v16

    .line 334
    const-string v17, "%"

    const-string v18, ""

    invoke-virtual/range {v16 .. v18}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v16

    const-string v17, " "

    const-string v18, ""

    invoke-virtual/range {v16 .. v18}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v16

    .line 333
    invoke-static/range {v15 .. v16}, Lcom/wmr/order/PingActivity;->access$9(Lcom/wmr/order/PingActivity;Ljava/lang/String;)V

    .line 335
    new-instance v15, Ljava/lang/StringBuilder;

    invoke-static {v14}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v16, "&goodsid_"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v1}, Lbean/OrderParticular;->getId()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v2}, Landroid/widget/RatingBar;->getRating()F

    move-result v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "&content_"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v1}, Lbean/OrderParticular;->getId()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, "="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    move-object/from16 v16, v0

    # getter for: Lcom/wmr/order/PingActivity;->pointcontent:Ljava/lang/String;
    invoke-static/range {v16 .. v16}, Lcom/wmr/order/PingActivity;->access$10(Lcom/wmr/order/PingActivity;)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 329
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_0

    .line 360
    .end local v1    # "bb":Lbean/OrderParticular;
    .end local v2    # "checkrate":Landroid/widget/RatingBar;
    .end local v4    # "editText1":Landroid/widget/EditText;
    .restart local v6    # "json":Lorg/json/JSONObject;
    .restart local v10    # "shoppointnum":Landroid/widget/RatingBar;
    .restart local v11    # "shopsudupointnum":Landroid/widget/RatingBar;
    .restart local v12    # "str":Ljava/lang/String;
    :cond_1
    const/4 v15, 0x5

    :try_start_1
    iput v15, v7, Landroid/os/Message;->arg1:I

    .line 361
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    iget-object v15, v15, Lcom/wmr/order/PingActivity;->h:Landroid/os/Handler;

    invoke-virtual {v15, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_1

    .line 365
    .end local v6    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v3

    .line 367
    .local v3, "e":Lorg/json/JSONException;
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    .line 370
    const/4 v15, 0x2

    iput v15, v7, Landroid/os/Message;->arg1:I

    .line 371
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/wmr/order/PingActivity$6;->this$0:Lcom/wmr/order/PingActivity;

    iget-object v15, v15, Lcom/wmr/order/PingActivity;->h:Landroid/os/Handler;

    invoke-virtual {v15, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 376
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 377
    monitor-exit p0

    return-void

    .line 376
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
